<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!-- public quote -->
<%@include file="/jsp/comm_css_include.jsp"%>
<link rel="stylesheet" type="text/css" href="${basePath}/css/zTreeStyle/zTreeStyle/zTreeStyle.css">
<!doctype html>
<html>
<head>
<style type="text/css">
li{list-style: none;}

</style>
</head>
<body class="gray-bg">
	<div class="container creditbody">
		 <div class="iboxtitle">
		 	<span><i class="glyphicon glyphicon-map-marker"></i>&nbsp;业务受理>车辆修改审核</span>
         </div>
         <div class="buttonfixed">
	       	<button type="button" id="save_button" class="btn dpbtn_red" onclick="refuse();">拒绝</button>
	       	<button type="button" id="commit_button" class="btn dpbtn_blue" onclick="commit();">通过</button>
	    </div>
	    <%@include file="/jsp/comm_yw_info_include_nohis.jsp"%>
	    <div class="business-manwife">车辆调整信息</div>
		<div class="tche-padding">
			<table cellpadding="0" cellspacing="0" border="0" class="thead-tabletz">
				<thead class="thead-a">
					<tr>
						<th>项目</th>
						<th>原值</th>
						<th>新值</th>
						<th>调整值</th>
					</tr>
				</thead>
				<tbody class="tbody-a">
					<tr>
						<td colspan="4" align="center"><strong class="strongFont">车辆信息</strong></td>
					</tr>
					<tr>
						<td id="">车辆类别</td>
						<td id="categoryCar">${ywCarinfoEditHis.categoryCarDisplay }</td>
						<td id="categoryCarNew">${ywCarinfoEdit.categoryCarDisplay }</td>
						<td id="categoryCarTz">${ywCarinfoEditHis.categoryCarDisplay == ywCarinfoEdit.categoryCarDisplay ? '-' : ywCarinfoEdit.categoryCarDisplay}</td>
					</tr>
					<tr>
						<td id="">车辆颜色</td>
						<td id="colorCar">${ywCarinfoEditHis.colorCarDisplay }</td>
						<td id="colorCarNew">${ywCarinfoEdit.colorCarDisplay }</td>
						<td id="colorCarTz">${ywCarinfoEditHis.colorCarDisplay == ywCarinfoEdit.colorCarDisplay ? '-' : ywCarinfoEdit.colorCarDisplay}</td>
					</tr>
					<tr>
						<td id="">新车指导价</td>
						<td id="priceNewcar">${ywCarinfoEditHis.priceNewcar }</td>
						<td id="priceNewcarNew">${ywCarinfoEdit.priceNewcar }</td>
						<td id="priceNewcarTz">${ywCarinfoEditHis.priceNewcar == ywCarinfoEdit.priceNewcar ? '-' : ywCarinfoEdit.priceNewcar}</td>
					</tr>
					<tr>
						<td id="">车辆车型</td>
						<td id="carName">${ywCarinfoEditHis.nameCarModel }</td>
						<td id="carNameNew">${ywCarinfoEdit.nameCarModel }</td>
						<td id="carNameTz">${ywCarinfoEditHis.nameCarModel == ywCarinfoEdit.nameCarModel ? '-' : ywCarinfoEdit.nameCarModel}</td>
					</tr>
					<tr>
						<td id="">合格证号</td>
						<td id="numQualified">${ywCarinfoEditHis.numQualified }</td>
						<td id="numQualifiedNew">${ywCarinfoEdit.numQualified }</td>
						<td id="numQualifiedTz">${ywCarinfoEditHis.numQualified == ywCarinfoEdit.numQualified ? '-' : ywCarinfoEdit.numQualified}</td>
					</tr>
					<tr>
						<td id="">厂牌型号</td>
						<td id="noticeModel">${ywCarinfoEditHis.noticeModel }</td>
						<td id="noticeModelNew">${ywCarinfoEdit.noticeModel }</td>
						<td id="noticeModelTz">${ywCarinfoEditHis.noticeModel == ywCarinfoEdit.noticeModel ? '-' : ywCarinfoEdit.noticeModel}</td>
					</tr>
					<tr>
						<td id="">排量(L)</td>
						<td id="displacement">${ywCarinfoEditHis.displacement }</td>
						<td id="displacementNew">${ywCarinfoEdit.displacement }</td>
						<td id="displacementTz">${ywCarinfoEditHis.displacement == ywCarinfoEdit.displacement ? '-' : ywCarinfoEdit.displacement}</td>
					</tr>
					<tr>
						<td id="">功率</td>
						<td id="power">${ywCarinfoEditHis.power }</td>
						<td id="powerNew">${ywCarinfoEdit.power }</td>
						<td id="powerTz">${ywCarinfoEditHis.power == ywCarinfoEdit.power ? '-' : ywCarinfoEdit.power}</td>
					</tr>
					<tr>
						<td id="">发动机号</td>
						<td id="numEngine">${ywCarinfoEditHis.numEngine }</td>
						<td id="numEngineNew">${ywCarinfoEdit.numEngine }</td>
						<td id="numEngineTz">${ywCarinfoEditHis.numEngine == ywCarinfoEdit.numEngine ? '-' : ywCarinfoEdit.numEngine}</td>
					</tr>
					<tr>
						<td id="">底盘后6位</td>
						<td id="numChassisSix">${ywCarinfoEditHis.numChassisSix }</td>
						<td id="numChassisSixNew">${ywCarinfoEdit.numChassisSix }</td>
						<td id="numChassisSixTz">${ywCarinfoEditHis.numChassisSix == ywCarinfoEdit.numChassisSix ? '-' : ywCarinfoEdit.numChassisSix}</td>
					</tr>
					<tr>
						<td id="">开票单位</td>
						<td id="companyBill">${ywCarinfoEditHis.companyBill }</td>
						<td id="companyBillNew">${ywCarinfoEdit.companyBill }</td>
						<td id="companyBillTz">${ywCarinfoEditHis.companyBill == ywCarinfoEdit.companyBill ? '-' : ywCarinfoEdit.companyBill}</td>
					</tr>
					<tr>
						<td id="">发票日期</td>
						<td id="dateBill"><fmt:formatDate value="${ywCarinfoEditHis.dateBill }" pattern="yyyy-MM-dd" /></td>
						<td id="dateBillNew"><fmt:formatDate value="${ywCarinfoEdit.dateBill }" pattern="yyyy-MM-dd" /></td>
						<td id="dateBillTz"><fmt:formatDate value="${ywCarinfoEditHis.dateBill == ywCarinfoEdit.dateBill ? '' : ywCarinfoEdit.dateBill}" pattern="yyyy-MM-dd" /></td>
					</tr>
					<tr>
						<td id="">发票号</td>
						<td id="numBill">${ywCarinfoEditHis.numBill }</td>
						<td id="numBillNew">${ywCarinfoEdit.numBill }</td>
						<td id="numBillTz">${ywCarinfoEditHis.numBill == ywCarinfoEdit.numBill ? '-' : ywCarinfoEdit.numBill}</td>
					</tr>
					<tr>
						<td id="">发票地区</td>
						<td id="areaBill">${ywCarinfoEditHis.areaBill }</td>
						<td id="areaBillNew">${ywCarinfoEdit.areaBill }</td>
						<td id="areaBillTz">${ywCarinfoEditHis.areaBill == ywCarinfoEdit.areaBill ? '-' : ywCarinfoEdit.areaBill}</td>
					</tr>
					<tr>
						<td id="">车架号</td>
						<td id="areaBill">${ywCarinfoEditHis.vin }</td>
						<td id="areaBillNew">${ywCarinfoEdit.vin }</td>
						<td id="areaBillTz">${ywCarinfoEditHis.vin == ywCarinfoEdit.vin ? '-' : ywCarinfoEdit.vin}</td>
					</tr>
					<%-- <tr>
						<td colspan="4" align="center"><strong class="strongFont">车牌信息</strong></td>
					</tr>
					<tr>
						<td id="">车牌号</td>
						<td id="licensePlate">${ywCarinfoEditHis.licensePlate }</td>
						<td id="licensePlateNew">${ywCarinfoEdit.licensePlate }</td>
						<td id="licensePlateTz">${ywCarinfoEditHis.licensePlate == ywCarinfoEdit.licensePlate ? '-' : ywCarinfoEdit.licensePlate}</td>
					</tr>
					<tr>
						<td id="">登记证号</td>
						<td id="registrationNumber">${ywCarinfoEditHis.registrationNumber }</td>
						<td id="registrationNumberNew">${ywCarinfoEdit.registrationNumber }</td>
						<td id="registrationNumberTz">${ywCarinfoEditHis.registrationNumber == ywCarinfoEdit.registrationNumber ? '-' : ywCarinfoEdit.registrationNumber}</td>
					</tr> --%>
					<%-- <tr>
						<td id="">上牌地</td>
						<td id="registrationArea">${ywCarinfoEditHis.registrationArea }</td>
						<td id="registrationAreaNew">${ywCarinfoEdit.registrationArea }</td>
						<td id="registrationAreaTz">${ywCarinfoEditHis.registrationArea == ywCarinfoEdit.registrationArea ? '-' : ywCarinfoEdit.registrationArea}</td>
					</tr> --%>
				<%-- 	<tr>
						<td id="">车管所</td>
						<td id="dvm">${ywCarinfoEditHis.dvm }</td>
						<td id="dvmNew">${ywCarinfoEdit.dvm }</td>
						<td id="dvmTz">${ywCarinfoEditHis.dvm == ywCarinfoEdit.dvm ? '-' : ywCarinfoEdit.dvm}</td>
					</tr> --%>
					<%-- <tr>
						<td id="">新车上牌时间</td>
						<td id="dateRegistrationFirst"><fmt:formatDate value="${ywCarinfoEditHis.dateRegistrationFirst }" pattern="yyyy-MM-dd" /> </td>
						<td id="dateRegistrationFirstNew"><fmt:formatDate value="${ywCarinfoEdit.dateRegistrationFirst }" pattern="yyyy-MM-dd" /></td>
						<td id="dateRegistrationFirstTz"><fmt:formatDate value="${ywCarinfoEditHis.dateRegistrationFirst == ywCarinfoEdit.dateRegistrationFirst ? '' : ywCarinfoEdit.dateRegistrationFirst}" pattern="yyyy-MM-dd" /></td>
					</tr>
					<tr>
						<td id="">本次上牌时间</td>
						<td id="dateRegistrationNow"><fmt:formatDate value="${ywCarinfoEditHis.dateRegistrationNow }" pattern="yyyy-MM-dd" /></td>
						<td id="dateRegistrationNowNew"><fmt:formatDate value="${ywCarinfoEdit.dateRegistrationNow }" pattern="yyyy-MM-dd" /></td>
						<td id="dateRegistrationNowTz"><fmt:formatDate value="${ywCarinfoEditHis.dateRegistrationNow == ywCarinfoEdit.dateRegistrationNow ? '' : ywCarinfoEdit.dateRegistrationNow}" pattern="yyyy-MM-dd" /></td>
					</tr> --%>
					<tr>
						<td colspan="4"><strong class="strongFont">备注</strong></td>
					</tr>
					<tr>
						<td colspan="4" id="remarks">${ywCarinfoEdit.remarks }</td>
					</tr>
				</tbody>
			</table>
		</div>
		<!-- 当前经办人 -->
   		<%@include file="/jsp/comm_current_person_include.jsp"%>
	</div>	
	
	<!-- public quote -->
    <%@include file="/jsp/comm_js_include.jsp"%>
    <script type="text/javascript" src="${basePath}/js/plugins/layer/laydate/laydate.js"></script>
    <!--
    	时间：2017-04-06
    	描述：js
    -->
    <script type="text/javascript">
    
	    jQuery(function($) {  
	    	$(".tbody-a tr").each(function(){
	    		var compareVal = $(this).find(".compare").val();
	    		if(compareVal == "0.00" || compareVal == "0.0000"){
	    			$(this).find(".compare").val('-');
	    		}
	    	})
	    });
		
	    var refuse = function(){
	    	var busiId = $.getUrlData("busiId");
	    	layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
		 		  btn: ['确定','取消'] //按钮
	 		}, function(){
	 			layer.msg('正在执行',{icon: 16,shade: 0.15});
	 			layer.closeAll();
		 		$.dpAjax({
		 			url:'${basePath}/YwCarinfoEditController/refuse',
		 			data:{
		 				"busiId":busiId,
		 			},
		 			success: function(datas)
		 			{
		 				setTimeout(function(){
	     					location.href='${basePath}/web/system/yw/ywCarinfoEditSh.jsp'; 
	     				},3000);
		 		     }
		 		});
	 		})
	    }
	    
	    var commit = function(){
	    	var busiId = $.getUrlData("busiId");
	    	layer.confirm('确认执行本次操作？操作人：<span style="color:#BD1723;">${current_user_key.uname}</span>', {
		 		  btn: ['确定','取消'] //按钮
	 		}, function(){
	 			layer.msg('正在执行',{icon: 16,shade: 0.15});
	 			layer.closeAll();
		 		$.dpAjax({
		 			url:'${basePath}/YwCarinfoEditController/pass',
		 			data:{
		 				"busiId":busiId,
		 			},
		 			success: function(datas)
		 			{
		 				setTimeout(function(){
	     					location.href='${basePath}/web/system/yw/ywCarinfoEditSh.jsp'; 
	     				},3000);
		 		     }
		 		});
	 		})
	    }
	 	
    </script>
</body>
</html>
